package com.autumn.cloud.demo.provider;

import com.autumn.mybatis.annotation.EnableAutumnMybatis;
import com.autumn.swagger.annotation.ApiGroup;
import com.autumn.swagger.annotation.EnableAutumnSwagger;
import com.autumn.web.annotation.EnableAutumnApiResponseBody;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-12-10 13:08
 **/
@SpringBootApplication
@EnableEurekaClient
@EnableAutumnMybatis(
        mapperLocations = {"classpath*:mapper/*.xml"},
        typeAliasesPackages = {"com.autumn.cloud.demo.provider"},
        value = {"com.autumn.cloud.demo.provider"})
@EnableAutumnSwagger(
        title = "Autumn Cloud demo API 文档",
        description = "",
        authorName = "妙常乐科技",
        authorUrl = "www.miaochangle.com",
        authorEmail = "",
        groups = {
                @ApiGroup(groupName = "提供者 Api", packages = "com.autumn.cloud.demo.provider.controllers")
        }
)
@EnableAutumnApiResponseBody({"com.autumn.cloud.demo.provider.controllers.order"})
public class ProviderStartup {

    public static void main(String[] args) {
        SpringApplication.run(ProviderStartup.class, args);
    }
}
